package com.tiantianyuegou.adapter;

import android.content.Context;
import android.widget.TextView;

import com.trouble.framework.adapter.BaseAdapterHelper;
import com.trouble.framework.adapter.QuickAdapter;
import com.tiantianyuegou.R;
import com.tiantianyuegou.model.ClassifyGridModel;

import java.util.List;

/**
 * Created by Administrator on 2016/1/13.
 */
public class GridvFenLeiAdapter extends QuickAdapter<ClassifyGridModel>{
    Context mContext;

    public GridvFenLeiAdapter(Context context,List<ClassifyGridModel> datas) {
        super(context, R.layout.griditem_fenlei);
        data.addAll(datas);
        mContext = context;
    }

    @Override
    protected void convert(BaseAdapterHelper helper, ClassifyGridModel item) {
        TextView classify=helper.getView(R.id.tv_gridvfenlei);
        classify.setText(item.getClassify());
    }
}
